﻿<%@ Page Language="C#" Theme="Default" MasterPageFile="~/MasterPages/admin.master" AutoEventWireup="true"  CodeFile="NewsCategory.aspx.cs" Inherits="NewsCategory" Title="NewsCategory List" %>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server">News Category List</asp:Content>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
		<data:GridViewSearchPanel ID="GridViewSearchPanel1" runat="server" GridViewControlID="GridView1" PersistenceMethod="Session" />
		<br />
		<data:EntityGridView ID="GridView1" runat="server"			
				AutoGenerateColumns="False"					
				OnSelectedIndexChanged="GridView1_SelectedIndexChanged"
				DataSourceID="NewsCategoryDataSource"
				DataKeyNames="CategoryId"
				AllowMultiColumnSorting="false"
				DefaultSortColumnName="" 
				DefaultSortDirection="Ascending"	
				ExcelExportFileName="Export_NewsCategory.xls"  		
			>
			<Columns>
				<asp:CommandField ShowSelectButton="True" ShowEditButton="True" />				
				<asp:BoundField DataField="LangId" HeaderText="Lang Id" SortExpression="[Lang_Id]"  />
				<asp:BoundField DataField="CategoryName" HeaderText="Category Name" SortExpression="[Category_Name]"  />
				<asp:BoundField DataField="CategoryTitle" HeaderText="Category Title" SortExpression="[Category_Title]"  />
				<asp:BoundField DataField="CategoryImage" HeaderText="Category Image" SortExpression="[Category_Image]"  />
				<asp:BoundField DataField="CategoryImageDescription" HeaderText="Category Image Description" SortExpression="[Category_ImageDescription]"  />
				<asp:BoundField DataField="CategorySummary" HeaderText="Category Summary" SortExpression="[Category_Summary]"  />
				<asp:BoundField DataField="CategoryKeyword" HeaderText="Category Keyword" SortExpression="[Category_Keyword]"  />
				<asp:BoundField DataField="OrderKey" HeaderText="Order Key" SortExpression="[OrderKey]"  />
				<data:BoundRadioButtonField DataField="IsActive" HeaderText="Is Active" SortExpression="[IsActive]"  />
			</Columns>
			<EmptyDataTemplate>
				<b>No NewsCategory Found!</b>
			</EmptyDataTemplate>
		</data:EntityGridView>
		<br />
		<asp:Button runat="server" ID="btnNewsCategory" OnClientClick="javascript:location.href='NewsCategoryEdit.aspx'; return false;" Text="Add New"></asp:Button>
		<data:NewsCategoryDataSource ID="NewsCategoryDataSource" runat="server"
			SelectMethod="GetPaged"
			EnablePaging="True"
			EnableSorting="True"
		>
			<Parameters>
				<data:CustomParameter Name="WhereClause" Value="" ConvertEmptyStringToNull="false" />
				<data:CustomParameter Name="OrderByClause" Value="" ConvertEmptyStringToNull="false" />
				<asp:ControlParameter Name="PageIndex" ControlID="GridView1" PropertyName="PageIndex" Type="Int32" />
				<asp:ControlParameter Name="PageSize" ControlID="GridView1" PropertyName="PageSize" Type="Int32" />
				<data:CustomParameter Name="RecordCount" Value="0" Type="Int32" />
			</Parameters>
		</data:NewsCategoryDataSource>
	    		
</asp:Content>



